﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript">
    function DelOK() {
        if (confirm('确认删除') == true) {
            return true;
        }
        else {
            return false;
        }
    }    
</script>
<table width="100%" class="gridtable" style="border-collapse:collapse;">
    <tr style="height:25px;">
        <td style="border-right-width:0px; text-align:left;">&nbsp;&nbsp;
            <input type="button" value="返回" onclick='window.navigate("UserGrouplist.aspx")' />&nbsp;&nbsp;
            <asp:Button ID="saveset" runat="server" Text="保存设置" />
        </td>
        <td style="border-left-width:0px; text-align:left;">
            &nbsp;&nbsp;
        </td>
    </tr>
    <tr>
        <CBW:MPRepeater ID="MPRepeaterList" runat="server">
            <EmptyDataTemplate>
                <td style="text-align: center;" colspan="2">
                    暂无数据！
                </td>
            </EmptyDataTemplate>
            <ItemTemplate>
                <td style="text-align: left;" valign="top">
                    <div style="width: 100%; height: 25px; background-color: #ECF2FB">
                        <asp:CheckBox ID="bcheckselect" runat="server" Text='<%#Eval("MENU_TITLE") %>' onclick='if($(this).attr("checked")==false){$(this).parent().parent().find("#selectadddiv").find("input").attr("checked",false)}else{$(this).parent().parent().find("#selectadddiv").find("input").attr("checked",true)}' />
                    </div>
                    <div id="selectadddiv" style="width: 100%;">
                        <CBW:MPRepeater ID="sMPRepeaterList" runat="server">
                            <ItemTemplate>
                                <asp:Label ID="sidtib" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
                                <asp:CheckBox ID="checkselect" runat="server" Text='<%#Eval("MENU_TITLE") %>' Checked='<%#!(Eval("isexist").ToString()=="0") %>' /><br />
                            </ItemTemplate>
                        </CBW:MPRepeater>
                    </div>
                </td>
                <asp:Label ID="idtib" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
                <asp:Label ID="showtr" runat="server"></asp:Label>
            </ItemTemplate>
        </CBW:MPRepeater>
    </tr>
</table>
